package com.llt.retry.controller;

import com.llt.retry.service.RemoteService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author llt
 * @date 2025/5/20
 */
@RestController
@RequiredArgsConstructor
public class TestController {

    private final RemoteService remoteService;

    @GetMapping("/retry")
    public String testRetry() {
        remoteService.callRemoteApi();
        return "调用完成";
    }
}
